<template>
  <div class="componentA">
    <button class="" @click="shadow">点击打开modle</button>
  </div>

</template>

<script setup lang="ts">
import { defineEmits } from 'vue';

const emit = defineEmits(['isShow'])

const shadow = () => {
  emit('isShow')
}

</script>

<style lang="less" scoped>
.componentA {
  height: 100px;
  width: 100px;
}
</style>